package com.wms.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("分页结果")
public class PageBean<T> {
    @ApiModelProperty(value = "当前页")
    int page;
    @ApiModelProperty(value = "每页记录数")
    int pageSize;
    @ApiModelProperty(value = "总记录数")
    long total;
//    @ApiModelProperty(value = "总页码")
//    int pages;    // 总页数
    @ApiModelProperty(value = "分页结果")
    T list;
}
